/**
 * 
 */
package com.appchina.autism.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import com.appchina.autism.R;

/**
 * Tutorial dialog
 * 
 * @author 
 */
public class TutorialDialog extends Dialog {

	/**
	 * @param context
	 */
	public TutorialDialog(Context context) {
		super(context);
		initialize(context);
	}

	/**
	 * @param context
	 * @param theme
	 */
	public TutorialDialog(Context context, int theme) {
		super(context, theme);
		initialize(context);
	}

	/**
	 * @param context
	 * @param cancelable
	 * @param cancelListener
	 */
	public TutorialDialog(Context context, boolean cancelable,
			OnCancelListener cancelListener) {
		super(context, cancelable, cancelListener);
		initialize(context);
	}

	/**
	 * Common initialization code
	 */
	private final void initialize(final Context context) {
		setContentView(R.layout.common_dialog_tutorial);
		setTitle("android:scrollbarAlwaysDrawVerticalTrack");
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setCanceledOnTouchOutside(false);
	}
}
